﻿using System.Collections;

using Community.CsharpSqlite.SQLiteClient;

namespace VSTalk.Engine.Core.Data
{
    public class DatabaseManager : IDatabaseManager
    {
        private SqliteConnection _connection;

        public DatabaseManager(IConnectionFactory factory)
        {
            _connection = factory.GetConnection();
        }

        public void RegisterDA(IDataAccess access)
        {
            access.Init(_connection);
        }
    }
}